Add `post_step`, `post_sweep`, and `post_predict` hooks.

Closes #91.