Incorporate Gitaly's RefService.FindAllRemoteBranches RPC
CE backport of relevant changes from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/6583
CE backport of relevant changes from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/6583