Pass the context used to evaluate a rule to the rule's action.

This allows you to use traditional controllers for actions when creating
rules, rather than just closures.