api: seperate internal client into internalapi
Created by: bobheadxi
Extracted from and required by #28117. Users of just the API types no longer need to import httpcli
and a whole bunch of other things, which was causing some awkward import cycles (see #28117)