Added HTTPS support. Security FTW.