WIP: Add shared rules data (refs #1233)

Work in progress for sharable rule data (#1233). I can't figure out any way to test this. Maybe if I somehow create some fancy spy around RuleContext I could verify that data is present, but we don't have any tests for any of the other properties of context.