a bunch of work on rules, and internal ddx.
need to debug it though, and add a few more rules and examples.
Also need to add examples for the rules_engine_demo