Issue 216. Removed reference to window.explorer and passed dependency
through new context menu API from scripted.js. Also refactored and
cleaned up context menu and context menu provider code.