Bake a rules builder

Generating the rules checker. Refs https://github.com/cakephp/cakephp/pull/5296
@markstory it is a property in the class, which is initialized as an array.