iOS fixes

A little more support for iOS. A minor fix for ContextSettings to handle stencil bits correctly and various changes to support orientation changes of the device. Tested on iOS 7.x and 8.x on emulators and real devices. Also includes retina-support. Both the retina-support and the orientation changes make use of the info.plist settings for the app for more freedom of the using developer.