Fix unit tests

Unit tests did not run because of stricter content
policies in Chrome versions after 18 or so. Move around
code so that it complies with those stricter policies.
Get rid of unused browser_action

and clean up some dangling whitespcae in manifest