Authentication, templates, bootstrap and other tweaks