Added new hooks into snap.js to allow connecting to the close event. Thi...

...s allows us to turn the "tapToClose" setting back on so if the right menu button is no longer available, tapping outside the menu will close it as well.

@CHenrie Please review