ScaleManager - orientation updates/fixes

This should fix #1306 

It also updates the method of obtaining the orientation to be more consistent and standards/future-oriented.

There _may_ be a case for enabling the `window.orientation` fallback, but I believe the current method should be sufficient while avoiding some of the known issues.