Remove dead code
Add comments
Make doOneHandler synchron for synchron events.
Do not use anymore setImmediate.

Now an syncrhon event is realy syncrhon
Add comments
Update libs