big first commit

refactored main.html with templates, added basic routing.