Only parse remote branches in git.
Move sync_versions to apiv2
Fix tests
Add utils file to restapi