CMS7-7887: Enable ajax updates for the reference editor widget - Refactored ReferenceEditor to allow for ajax-updates