Add initial support for HTTP upgrade