ReplicatedRest: initialize the state machine