warehouse: implement gerrit support

Change-Id: Ibc2524a0a765c54ad97c2e3fe075621bf02b41cd