implement input_handler and add event_handler and masterevent_handler
TODO: locking, atomic for a smooth experience
improve input handler,  TODO: sometimes events collide, same problem as
lightspark (solution: poll events, but this destroys the structur so
find a better place for this)
disable testbackend,  cleanups