Refactor media object to match the new multimedia extension, fixes http://dev.gbif.org/issues/browse/POR-1955