add pre-save and post-save actions
Merge pull request #1 from christianwach/master

add pre-save and post-save actions