Added a base html template and moved the views so that they can be separated into web and api routes