Sets up login/logout urls and templates