Basic cookie-handling for outgoing requests in Node