Detect migration scenario based on UI script files to have same name and
different extensions (.html and .js).
Allow for multiple `Gerrit.install()` calls, reusing `plugin` instance
for purposes of migration.
Cleanup plugin interface between tests.
Change-Id: I1a98a2b8660ce4a1700766dc722d587817ede884