Add access to headers and query params from the original web sockets http request

This allows access to headers and query parameters included in the initial upgrade HTTP request.
Useful for extracting language preferences, session ids etc.
It works for me, and should not cause any backwards compatibility problems, but I will see if anyone has any comments before merging.