refactor: prepare AccountService and GitLabService for OAuth login
This MR contains several commits that are preparing our code for adding OAuth login. The MR only makes sense reviewed commit-by-commit.
- The first commit is the largest and it renames a
services
folder toaccounts
since the folder contains only account-related logic. - Then there is a commit that adds UriHandler that any part of the extension can use to listen on
gitlab-workflow://
links. - Then there are several commits that are preparing the
fetch
plumbing for a use-case when we don't have a token. Right now, all requests to the API are made with a token, but for OAuth, we'll be requesting the token (i.e. making a request without the token) - The last commit creates a new type of
Account
(oauth
)
Related to #560 (closed)
Edited by Tomas Vik