Use Cookie.parse

Using new Cookie(str) doesn't actually set the attributes in the cookie.
This is because Cookie takes in an object, and in our case we only
accept a string. Using Cookie.parse will return the appropriate
properties for the cookie.
Merge pull request #744 from lalitkapoor/should-use-cookie-parse

Use Cookie.parse