Implemented some base functionality in the PersistenceBase claseses that...

... did not depend on downstream libraries.