Changed cookie to read/write to align with JS api
Merge pull request #65 from benhutchison/master

Changed cookie to read/write to align with JS api