Set the rootViewController property of the window, like we're supposed to
do (ios4+).
Support the iOS6 idiom for autorotate.