Use HTTP headers for Websocket connection

Websocket connection does not currently make use of the kwargs provided in SocketIO constructor (cookies, etc.). This makes cookie-based authentication impossible for example.

A solution is to create a fake request to resolve headers.