maintain-replicas: the script that does the magic

Labs-side, for replicated databases.  This is the script that
currently creates the sanitized views and databases,, updates
metadata and otherwise maintains the user-facing half of DB
replication.

Change-Id: I419c935fc382d3b6f8f14ceeb50daccbeaf3a678