A polyfill for systems that do not implement screen.orientation. For now, this only handles systems that implement the deprecated window.orientation feature... e.g. iPad.
Install the polyfill if needed.
Makes a polyfill for orientation, based on window methods. Note that some of the features this is based on are deprecated, so this will not necessarily work on all platforms.