Bugfix for formatting response to allow multiple Set-Cookie headers
Add missing status code + status header initialization
Make private methods protected to allow extend from Client class in a threaded environment
Change headers back to associative array
Change variable scope from private to protected also
Fixes #2: By adding another stop criteria with check for ['type'] == 0
Merge pull request #1 from wagnert/master

Bugfix for formatting response to allow multiple Set-Cookie headers