Compound registry

Support for compound registry, ie a registry that chains other registries. Queries to the registries will go to the registries in the same order that they were added to the compound registry.