3375397: Add support for media entities
Closes #3375397
First pass at integrating media entities. When we have a media entity, it performs additional lookups to fetch the file entity that it contains.
It might require a bit more finessing to ensure that it's not trying to capture any entity types that aren't Media.