Modified to manage orientation rotation

Added code to detect and manage orientation changes while the message is active. Added logic to use different dimensions (width v. height) when screen is rotated.

*Tested on iOS 7* with NavigationController, TabBarController, TableViewController and combinations there in.