The X-Pack opening and the recent other refactorings left a lot of unused imports in the codebase. This commit removes them all.
Modifies the SQL tests to use the new `Request` object flavored methods introduced onto the `RestClient` in #29623. We'd like to remove the old methods eventually so we should stop using them.