Use wikibase.RepoApi in lib JavaScript

Just to make sure this is really component independent (mw.Api only
queries the local api, while wikibase.RepoApi always queries the
api of the repo).

Change-Id: I88f0173f8a6fbc9385cb3c7f223f4e674460a190
Merge "Use wikibase.RepoApi in lib JavaScript"