Initial code base for application. Still needs a lot of work. None of this has been tested