Added login/logout to templates, custom 404.