Implement EZP-21191: Implement new internal format to cover ezxml capabilities

DO NOT MERGE

This PR relates to https://jira.ez.no/browse/EZP-21191