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

Adding a delegate to REMenu for handling before and after an open/close. I considered adding two new blocks instead but given the functionality, delegation seems more appropriate. If you want I can use blocks instead.