Add "gutterContextMenu" event to capture context menu events in gutters
Clean up gutterContextMenu code

Issue #1766