Pass locales list to database library when updating repos
Relates to !1382. Expose locales list in the database library such that clients may supply a custom list (and/or ordering) of languages for the purpose of resolving localized content in the repos.
The client app is also updated to pass a locales list when updating repos so that we may be sure we're on the same page and, well, not leaving too much to chance.