Bake a rules builder

Generating the rules checker. Refs https://github.com/cakephp/cakephp/pull/5296
Ok, what about the change you made to skip validation on empty data? Is this still necessary after that?