Mayor: New event system and better shutdown

* Removed external library and added a built in system instead.
* Created a shutdown function that states should call.
Moved menu object