APY-47: Refactor CDM to include content metadata and make it extensible
removed publishDir, added updateMetadata when publishing file/content