Fixes #8393: added support for basic auth for standalone registries
Fixes #7647: Added support for external registries