Flip between wss and ws, based on if under https.
Merge pull request #15 from darrencauthon/fix_console_auth_when_under_https

Fix console auth error when under SSL