Upgrade chrome extension manifest to version 2.

Change background.html to script.
Remove useless permissions.
Update to new message passing functions.