Add support for new events.

New events supported:
- mode
- window
- barconfig_update event
Add .gitignore