Remove the need for a chrome window reference in GM_xhr.
Refactor parts of the menu command handling into a JSM.
Move menu command event handling to GM_MenuCommander.
Move sandbox related functions into JSM.
Remove unused imports/definitions.