refactor gerrit util

- change no argument Function to Supplier
- generify accessRest to match types of Supplier and Consumer
Merge pull request #107 from forrert/refactor-gerrit-util

refactor gerrit util (minor clean up)