upgrade to manifest version 2

Recent versions of chrome will not load unpacked extensions with manifest version 1. I believe this is the smallest set of changes needed to upgrade.