Implementation of plugin chaining.

- Process modifiers function now passes the activity and a message that can be modified as modifiers are applied to.
- Fixes #219