Changes to get QS building in Xcode 6 beta

Mainly this just involves casting the app delegate to QSController
It seems ARC is also now picky about id types