Move ReplicaDeath to config.
Generated rpc class should try to reconnect.
Add basic recovery to replica.