Fix time zone handling for cookie expiry time

PhantomJS parses the HTTP date format in the local time zone, even if it
is actually GMT. So we send the milliseconds from epoch instead to get
around that.

Closes #228