Added orientation changes

Added a method that returns the UIInterfaceOrientation.
Added a block-based method for getting notified when the orientation
changes.