Update for gerrit repo command update

(also fixed a bug in the new version of repo).

Add scripts to ease merging APSE release.