Lots of refactoring. Placed AppDelegate's core data functionality into DatabaseManager. Placed AppDelegate's state management into AppState. Added login and settings pages. Improved UI throughout the app. Added a license and a readme file.