gallery-base64-min.js on https

The script http://yui.yahooapis.com/gallery-2009.12.08-22/build/gallery-base64/gallery-base64-min.js is not reachable on https protocal that can be blocking. So we host the script and load it locally if the current website uses the https protocol.