Added setAnd.
Properly builds terms with built terms as subcomponents.
Initial tests for condition-action rules.