Implement attach_websocket() for attaching with WebSockets instead of HTTP streaming
Move creation of websocket connection to its own method, so subclasses can override
Support https:// URLs (replacing with wss://) when attaching websocket
merge aanand/attach-websocket
resize tty