This is the second part of migrating accounts from ReviewDb to NoteDb.
This change:
* migrates the accounts from ReviewDb to NoteDb (for single instance
Gerrit servers)
* adds a configuration parameter (user.readAccountsFromGit) that
controls whether external IDs are read from ReviewDb or NoteDb
AccountIT is now loading external IDs of an account directly from NoteDb
instead of retrieving them via the account cache. This is because for
the test deleteUserBranchWithAccessDatabaseCapability() the admin
account gets deleted by deleting its user branch and then the @After
restoreExternalIds() method couldn't delete the external IDs of that
account anymore (because the account was deleted it couldn't be
retrieved via the account cache anymore).
Change-Id: I41fa3a6bdb76f497c79a05bdc76e97a7e73624a6
Signed-off-by: Edwin Kempin <ekempin@google.com>