[Cookie] Refactor cookie and jar
Merge pull request #27 from egeloen/fix-cookie

[Cookie] Fix cookie and cookie jar