Bake a rules builder

Generating the rules checker. Refs https://github.com/cakephp/cakephp/pull/5296
yeah