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.

discussed in #743