wss for https sites

Initial implementation, seems to work