adding cookies support
Merge pull request #16 from tgallant/master

adding cookies support