Add support for git URLs

Added support for `git+ssh`, `git+http` and `git+https` URLs. These are supported by npm, and would be very useful for modules such as [deps-ok](https://github.com/bahmutov/deps-ok), which depend on this library.