Restructuring of application

Refactoring of controllers into their own classes.
Improving datepicker functionality.