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

This updates the context-menu API to support e10s.
nit: i think we prefer explicit (non-global) imports in `sdk/` code