Replicated KV Store

Restore to previous value if replication/presistence failed