[WIP] Registry mirroring

**Do not merge.**

This is a naive implementation of registry mirroring. Alpha-functional. Pull request to gather feedback and discuss details.

cc @samalba @kencochrane