Refactor to use MVC: add start of routes, controllers, views, templates and partials