Added HTTPS/HTTP option for usage on secure sites.
Also added GPL2 license and extended commenting.
Merge origin/master