Add context as second argument to ContentCatalog#addFile
To make adding a file to the catalog simpler, the ContentCatalog#addFile method should accept a second argument that serves as the context for the file being added. Any properties that are not set on the file being added will be automatically populated from this context / reference file.
addFile (file, context) { ... }
The context parameter can either be a file with a src property or the src property itself (or maybe we should only allow the second).
For example, to add a file to the same component, version, and module of another file, all you'd have to do is set the relative path and family (and for now, basename), and the rest of the properties get populated automatically.
This feature would be very useful in extensions, where you might want to register an addition asset such as an image to be used on the current page.