RavenDB-2855 select correct web socket protocol (HTTPS/HTTP)

Fixes http://issues.hibernatingrhinos.com/issue/RavenDB-2855