Adding option to control Oauth2 use of https when accessing self-signed ...

This is a fix for Issue #54. Thanks.