Main controller, basic routes and template files