New: Added CPRuleEditorDelegate protocol

Added CPRuleEditorDelegate protocol.
Also, now, delegate methods are called as we are used to do it in Cappuccino
Merge pull request #2092 from Dogild/CPRuleEditorDelegate

New: Added CPRuleEditorDelegate protocol