NEW: choose appropriate protocol, based on current site protocol

Automatically choose HTTPS, if the site is currently using that protocol. This resolves issues with chrome/ie not displaying the recaptcha field when site is using HTTPS.

Note: branch is from a few commits back.