cli.js: add https support. Issue #71.