[backend/federation] Use Document mediaType instead of HTTP Content-Type header where available
Certain CDN setups can return incorrect Content-Type headers for files. If the attached Document
explicitly has a mediaType set, assume that's the correct mime type, as the code setting that
likely has more knowledge on the purpose of the file.