WSS/HTTPS fixes

Turns out Ratchet doesn't support SSL.
A workaround is to have nginx proxypass those connections.
The $sslport parameter allows setting the port on which nginx listens
on.

Another workaround is to use stunnel, but I haven't looked into that.