Support for accesing headers to WebSocket handshake

Fix #547 Added support for accesing headers to WebSocket handshake, added tests to verify that headers are passed