Fixed orientation issues in iOS 8

Added compatibility for iOS 8 and Xcode 6 while maintaining backwards
compatibility for iOS 7 to handle orientation changes
Additional fixes for iOS 8 screen orientation

The screenbounds are used in additional areas of the app. Applied the
same fix to ensure the correct value is used on both iOS 8 and 7.
Merge pull request #325 from rogerdcarvalho/master

Fixed orientation issues in iOS 8