New adapter interface patch

I started working on https://github.com/jubianchi/gush-gitlab-adapter to make it compliant with the new adapter interface.

I had some issues which I tried to fix.