Added deleteObject() method to PersistenceManager.

Further consolidate persistence code at one place.