Add SSL/TLS support

Will auto-detect SSL if URI has 'wss://' scheme (the port will then
default to 443). SSL can be forced for any host/port/scheme.