Use width vs. height to determine orientation

Previously, onorientationchange was used to detect changes
in orientation and window.orientation used to determine
which orientation the device was in. These don't work on
Crosswalk.

Modify the isLandscape() to do a comparison of client height with
client width; and use resize events to detect orientation changes.