Encapsulate CG's flippedness so it doesn't aggravate higher level code.

Fixes #89 from Switch's side.
NSRect -> CGRect
NSRect -> CGRect, redux
Review feedback
Merge pull request #93 from numist/numist/89

Encapsulate flippedness of CG window frames better.