Allow passing arbitrary headers

We are using ws library for our websocket proxy server in openshift - https://github.com/openshift/origin-server/tree/master/node-proxy

With the way things are today, there isn't a way to pass down headers such as "Cookie".
Adding this code will make it easier to use ws within proxy servers.