Initial implementation on eventloop

Timers don't work yet