Sister PR to https://github.com/matrix-org/gomatrixserverlib/pull/364 Read this commit by commit to avoid going insane.
Part of a series of refactors on GMSL.
As discussed yesterday, a first draft of merging the keyserver and the userapi.