Fix bug where cookies aren't been set when hostname requires a port appended

A previous change from req.host to req.hostname removed the :PORT section of the host, which caused cookies not to be set. Broke Express 3.8.x when using a local port.