support websockets over ssl

Firefox (and probably other browsers too) doesn't allow using unsecure WebSocket connections inside a secure web page.