Sendqueue/Event handling

Sendqueue is not implemented yet :(.
Only event handling was drastically improved in this branch.
Anyway, to avoid confusion it's time to go back to master.