Minor refactoring, Creating AGAppDelegate