FEATURE: Add a plugin callback when editing a post

FIX: Wrap PostRevisor database work in a transaction
Merge pull request #2718 from riking/plugin-events

FEATURE: Add a plugin callback when editing a post