Begin refactoring AppController into more manageable pieces, starting with the app delegate.