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 
That wasn't obvious to me, but then again I'm new to non-browser JS.

No problem - that shouldn't be too hard to do.