Inline result menu

Update inline result behaviors to allow plugins to more easily extend
the context menu.
Merge pull request #1616 from mortalapeman/inline-result-menu

Inline result context menu