Add HTTPS support.

Add new -s or --secure option to force the use of https.