Fixing orientation for iOS 6.
Cleaning code.
Merge pull request #22 from ctrompette/fix/orientation-ios6

Orientation does not work any longer in iOS 6