Adding a delegate to REMenu for handling before and after an open or clo...

...se event.