Added much of the lifecycle to the app. Not much to do until server is running to test.