Add ability to rollback actions. Fixes #24