Logging fixes

When a request fails, log the request and the stack trace, and display a 500 page.  Add a request that always fails for testing.