CMS-3254 Live Edit - Add support for switching between layouts.
Refactoring, moved merging logic to its own class in LayoutRegionsMerger.