Allow using either HTTPS or SSH urls

Haven't been able to test because of 404s on the mock-res dependency, so
this probably doesn't work in its current state

refs #1