gitserver: Return interface instead of implementor
Created by: eseliger
To make sure the interface is complete, we should return that instead of the implementor. That also means we can mark it as private :)
Test plan
Static checks should find any issues with this.