Added interface for Rule and RulesConditionContainer and renamed condition()/action() methods to addConditon()/addAction().