Moved stuff around, fixed a few thigns, and generally made AppDelegate.m look nicer.