Make the pretty 404s display for the errors and make a 400 error page

- Have to use layout: "error_page" otherwise it doesn't render without
  the login part of the heading.
- Reindent some of the return statements.