Add hooks for context menus

Hi Damien, As discussed on the tenderapp support site, these changes add some hooks to access various context menus. Thanks! Steve