Fix orientation tracking

This replaces the js code to switch portrait/landscape CSS with media queries on the style elements. It also does a comparison of height with width to determine orientation, rather than using window.orientation (which doesn't work on Tizen Crosswalk).

However, please note that this still does not make the landscape view work on Tizen Crosswalk. It does work correctly on Android Crosswalk.

Also note that there's an unfortunate amount of whitespace stripping in there as well, which is necessary but distracting.

Fixes #1