Added support for secure websocket connections

Added support for SSL.