New eventsystem using a simple delegate system.

Instead of polling events from a queu, events are now handled via a
handlerfunction immediately. Therefore multiple tasks can now be used to
handle the same event on the same Unit.