Move #login_prompts into shared LoginHelpers module
Refactor V1 and V2 Base client classes

- Extract separate RestClient class for doing low-level HTTP work.
- Pull common code from V1::Base and V2::Base into BaseClient
- Expand test coverage for RestClient (code that was previously in
  BaseClient)

[#41057685]