Enable cookie interactions (and sessions) in the test client.

This means you can now unit test RequestHandlers that depend on
some cookie state to be set.

Also included is a suitable unit test.