Make number of replicas configurable, split client and server, create standalone