Made registries use shared/errors helper.

We had to change a few things to make the helper work, but the UI is
probably slightly improved, especially when we add more fields
to private registry.

Signed-off-by: Don Petersen <don@donpetersen.net>