Bug 1060138: Fix context-menu to work in e10s.

This updates the context-menu API to support e10s.
we should add a deprecation warning to the docs, saying `onMessage` will stop working once we ship e10s..