Switching the content script to use window.onmessage.
This works around the bug in Chrome preventing communication via events.
https://code.google.com/p/chromium/issues/detail?id=260378
Merge pull request #379 from google/messageport

Switching the content script to use window.onmessage.