Update to chrome manifest version 2

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