Class DelegatingStatePersistor

An implementation of StatePersistor that uses a DatasetContext to read and persist state.
This is needed to make it possible that the user can define a DatasetStatePersistor, without access to an instance
of a DatasetContext (from a Worker, for instance).