Upgrade to Chrome extension manifest version 2.
Update the code to adapt to the recent changes in Gmail.