Farm out cookie handling to the http-cookie gem, ensure Accept: application/json is set