Changed mako files to jinja2
Fixed most of the JS / templating issues for basic views.
Admin hasn't been touched yet.