Add commit persistance code and tests
Add new add_error function to save_post hooks
Add revision saving to save_post hook

* Add tests for new save_post hook