Expose initial http request to WebSocket handlers

See bug #232 and previous PR #241