add cookie support in requests
some minor cleanup
some more cleanup of the response
add cookie support to response

This commit adds support for response cookies. Response now has a method
cookie to fetch the current cookie. One cookie has multiple crumbs which
represent a key value pair. For each crumb multiple options can be set
according to the specs.