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