Add a (base) layout.html template that others can extend.
Send flash messages for logging out and login errors.