Implement cookie handling.

Client now manages cookies from responses and appends them to future
requests.
Fix cookies on subdomains.
Remove old HttpSocket code.
Don't use subscript notation.

Instead use -> for ease of use accessors. Subscript notation
is more verbose and requires implementing methods that do nothing.