Make config handling in RepoApi non-global

Change-Id: I79df2b6bdc81e319a19502f1d987633ad1120b29
Merge "Make config handling in RepoApi non-global"