Added extended Gadget HTTPServer, HTTP/S and WS/S support, fixed ws protocol negotiation