Parsing of urls

Fixes one issue mentionned in #1285. This should handle git://, http:// etc.
prefixes correctly, as well as .git suffixes. There is still a heuristic that
defaults to a version pin if the target starts with a number and doesn't
contain slashes.