Refactors Rule, RuleProcessor; Adds ability to revert rules by their :stage number.