Refactor Persist into a class.
Bump version for incompatible API changes.