add support for https
Merge pull request #2 from coolfactor/master

add support for https