Converts media resource to use correct structure, fixes up the media editor and controller so at least stuff renderes now.