NEXUS-6692: Remote URL validation

Backport of:
ea15a2538af54fa27ed2013390cf9dd723425fd8
Merge pull request #628 from sonatype/nexus-2.9.x-NEXUS-6689-remote-url-validation

REVIEW [2.9] NEXUS-6692: Remote URL validation