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

This updates the context-menu API to support e10s.
Good thought. I think the dead window stuff should mean it doesn't but I can easily add a listener for window unload and clear this then.