Send an email to owner upon closing the event

* extract vote related code into a module

https://trello.com/c/VDGLfOsQ
Toggle groups dropdown on mouseleave

* Group dropdown on share app modal now collapses on mouseleave

https://trello.com/c/TyJplods