Adjust Media class to be more robust and capture most captions
Adjust Media class so it should usually contain the caption too (exceptions of infoboxes/galleries but those can be covered by infobox/list in plaintext functions). Make media metadata extraction more robust as well.
Relevant specs: