API: add onBeforeRollback() and onAfterRollback() hooks.
Merge pull request #1730 from wilr/open5489

API: add onBeforeRollback() and onAfterRollback() hooks.