Added onPersist callback and associated tests.
Added a line of documentation for onPersist showing how to use it.
Merge pull request #42 from swanjr/add_on_store_callback

Added onPersist callback and associated tests.