Implement AdminApi using Gerrit's REST API
When a remote site is a Gerrit server, we can use its REST API to
perform admin operations: create missing projects, delete project,
update project's head.
Admin operations, when a remote site is a Gerrit server, were already
supported over SSH protocol. This change implements AdminApi using
Gerrit's REST API. This is useful when replicating to a remote Gerrit
server which doesn't run the SSH daemon.
Change-Id: I1fdb8f60b551651e3c4c402e021390a27d678896
12 files changed