Better handling of the ssl options, and uses the websocket for setting favorite threads on sort