Implement MediaTypeBase

https://www.drupal.org/node/2399515