support scheme parameter for https

These are patches to support scheme so the plugin can connect to HTTPS gerrit server.