CRM-15495 - Add filtering control to entityRef widget
EntityRef tag-related code cleanup