Added the initial build of a basic util to detect orientation.

Hooks are included for running methods when the aspect ratio changes
between landscape and portrait.