Update templates to use https whenever loading the discovery doc. HTTPS is always required (even when the host page is loaded using http), unless running against the devappserver.