Added HTTPS + client certificate support to WS client

Fixes #127