Revert "Roll my own registry login"

This reverts commit a52234d52f5185d55f7d58b142c2a018b1b3c1f1.