Context passing between Rules components

This is heavily work in progress.
I added it because I was too lazy to implement it in the the test plugins, but yeah, this should probably just be moved to the test plugins.