ticket:5 login and logged_out templates
Merge branch 't5_edit_form'. With fixes.