Added hard logout, jinja templating for all pages