Add menu activation events

Add events when the menu/context menu is opened or closed.

Note: Code had been original written by Tod and provided to Imilia. The getOpen/setOpen methods have been removed (for now) because they were not properly working