Keep cookies returned by the handshake

Append the cookies obtained from the handshake response to websocket's header option.