Fix for some oddities in cookie handling when setting multiple of them.
Added tests for cookies, and secure cookies.
Merge branch 'httpclientmethodsfix' into cookiefix
Merge tag 'v1.0-beta9'