Issue #1086958: Switch from Media Entity to File Entity by effulgentsia: Use FileEntity instead of Media Entity. Redefine the way files are formatted in Drupal, cold fusion, etc
adding a todo for issue #1086966: Make view modes dynamic
Call up 'file' entities instead of 'media' entities in field_* calls; make the core file entity fieldable.
remove some hook_file_CRUD() implementations that are not necessary when we already have the file entity object. make sure that our file entity objects always have a bundle key set when we need it.
Make sure that file entities have a media bundle key ('type') set.
Fully removed definition of media entity. Now, we just have hook_entity_info_alter() for file entity.
Removed creation of file field on file entity. Will replace with 'extra_field'. Also removed dependency on Styles module. Will replace with lightweight formatter routing.
Removed file_usage_delete() hack made unnecessary by removing self-referential file field from the file entity. Also, made 'file' an 'extra_field' so it can be weighted in Field UI.
Removed media_load() and media_load_multiple() functions, since they're now redundant with file_load() and file_load_multiple(). Also, replaced calls to entity_load() with file_load_multiple().