Clean up panel orientation transform code
Monitor transform math was implemented in meta-monitor.c, but in a somewhat confusing way. Instead, move it into meta-monitor-transform.c, and while at it, move things around so the code becomes a bit more easier to read.
And add tests.
Cc: @rmader