First working draft of service registry with tests. #231