CRM-14134 : allow option to configure dedupe rule per event

CRM-14134 : allow option to configure dedupe rule per event and handle upgrade