Write deposit metadata for revisions in the generic metadata storage
Currently they are piggybacked on revision objects (in addition to the generic storage but only for origins).
We should write them to the generic storage, and eventually stop writing them to revision objects.
Migrated from T2496 (view on Phabricator)