Added HTTPS support

Should be pretty self-explanatory. Tested on OS X 10.8.2 with Python 2.7.2.