Implemented SSL (wss://) support

Tested with Chrome 24, Firefox 18, and Safari 5.1.7
Confirmed backwards compatibility of non-SSL (ws://) with same browsers