Upgrade error handling.

- Add 500 view.
- Add production error handler, which reroutes to 500 view and logs errors.
- Route errors through Logentries service.