Merge pull request #46 from hadfl/pre_post_scripts

- WIP: pre and post snapshot commands/scripts
- ForkCall bug workaround