cli: speedup the `swh` cli command startup time
by moving import statements in functions.
Also remove WebAPIClient from the swh.web.client namespace so loading the cli sunmodule does not trigger the loading of 230+ modules.
Related to swh-environment#2575 (closed).
Migrated from D3923 (view on Phabricator)