CMS-738 Support for persisting of Relationships when creating or updating content
Refactored editors to have less complex code.