allow plugins to hook into contextmenu
Merge pull request #335 from daeks/diff_plugin

Bugfix: allow plugins to hook into contextmenu