Fix multiple invocation of onMessage in content script

Not sure why but the onMessage listener in the content script
was re-added each time the content script run. Prevented it by
wrapping in an is-initialized check.

+ fixed grunt to ignore generated files