Save the context used to render a HttpRequest.

So that we can access and assert on it in tests.
Add logging of Whoosh search queries sent.