cli: speedup the swh cli command startup time
by moving import statements in functions and stop importing
swh.objstorage.factory.* in swh.objstorage.
Warning: this later breaks a few dependencies that had not updated
the way they import get_objstorage.
Related to T2575.