storage.in_memory: Use in-memory objstorage to store contents
In order to be more compliant with the swh stack and ease the writing of tests, use the in-memory objstorage for storing contents in the in-memory storage implementation.
Migrated from D798 (view on Phabricator)