Refactor replication
Add replication of ruleset databases.
Corrected `ruleset_of` so that it provides early indication of problem (rather than the call-handler reporting `Call Router exception: Error: Missing/invalid DB name`).