Add support for k8s secrets backed credentials, remove client support to talking to registry, use server for it. fix a few bugs