cli: speedup the `swh` cli command startup time
by moving import statements in functions, as well as preventing the loading of swh.storage.interface in swh.storage unless needed for type checking.
Related to swh-environment#2575 (closed).
Migrated from D3921 (view on Phabricator)