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 
Not quite sure what was going through my head here. Will re-add the protocol test.