Fix no_proxy support, add https support, add tests

This adds support for https, fixes a broken reference,
and adds two unit tests.

Solves Issue #1600