Refactored rotation logic, consolidation imports to the precompiled header
Fixed crashing bug with preferred interface orientations