adopt to recent changes in Gerrit extensions-api

- minor refactorings in client code

Related to issue #56