Bake a rules builder

Generating the rules checker. Refs https://github.com/cakephp/cakephp/pull/5296
Boo, I bet all kinds of bad things will happen if we switch that property to `null` by default.