Add login template
Be smart with log in redirects
Require login for posting comments
Fix the next handling of login and logout