Some Initial work done on the event system..

Needs a lot of convenience features added. Adding events is currently very clunky.

Signed-off-by: Peter Mårtensson <veritas.is.me@gmail.com>