New: Added CPRuleEditorDelegate protocol

Added CPRuleEditorDelegate protocol.
Also, now, delegate methods are called as we are used to do it in Cappuccino