Private registry auth

This enables people to put nginx or apache with basic auth in front of their private registry and still be able to push and pull images.

Only allowed over HTTPS for now.