Migrate `repositories` target to `gitlab-backup-cli`

As part of our effort to decouple the cli gem from the rails codebase, we want to migrate the repositories target and add unit tests for it.