Generic (non-middleware) version of the express cookie parser.