Better cookie support in Request/Response

This PR actually completes the work of @mikegreiling in pull request #902 which is a step toward solving issue #618.