Use console email backend for debug mode only
Add generic HTTP error handlers
Update comments
Perform logout on POST
Clean up templates