Added basic event stuff

Signed-off-by: Peter Mårtensson <veritas.is.me@gmail.com>
Merge remote-tracking branch 'remotes/origin/master'