Base registries functionality serve/client part

First working end-to-end version of registries.