REVIEW: [NEXUS-6688] Add more robust url validation

https://issues.sonatype.org/browse/NEXUS-6688

Also fixes use of ftp in urls: https://issues.sonatype.org/browse/NEXUS-3235
"Initialzing"? :)