Use wss:// when served from https://
Merge pull request #16 from hugojosefson/secure-websocket

Use wss:// when served from https://