Merge changes from topic "panlingual-bnr"

* changes:
  Add unit tests for app-locales restore logic.
  Add unit tests for the app-locales backup logic.
  Add the restore logic for app-locales.
  Add the backup logic for app-locales.