Manifest v2 migration

Made compatible with Manifest v2.
Tested with Windows and Linux Chrome clients.