Framework for replicated objects