event: add support for events

Basic support only, nothing big

Signed-off-by: Levente Kurusa <levex@linux.com>