storage.in_memory: Use integer ids for origin and visit instead of tuples
In order to match the real storage api and ease the drop of swh-storage mocking used in a large amount of tests, use integer ids for origin and visit instead of tuples.
Related T1421
Migrated from D767 (view on Phabricator)