- added support for event on_join, on_unload, on_chat
- added generate_update for events