Support hostnames with multiple components
Merge pull request #49 from skarap/custom_reg_improvements

Support hostnames with multiple components in custom repository addresses
Flesh out more tests around registry URL handling.