Use OrientationEventListener to get orientation of display

This saves around 8kB of garbage per second.
Merge remote-tracking branch 'nazgee/for-nicolas-orientation' into HEAD