tweaks to improve https support.
debut code for widget https
Renaming on https widget test.
Fix url.replace() call in widget https logic