Add a way to attach a session to a request.

* Use it by default in IntegrationTestCase, because integration
  tests are the sort of tests that want sessions (logged-in
  users, for instance).