add hooks for snapshot, restore, and clean
Merge pull request #76 from rstudio/feature/hooks

add hooks for snapshot, restore, and clean