Add script which converts media.xml to media.json