Added HTTPs configuration support.

Thanks @dblock :+1:  I find it quite useful, will use this in my own fork :)