Renders error pages with render_to_response()

We need to run render_to_response() in order to set all of the needed
context variables, including some of the theme variables.

Partially resolves Github issue #1006.