EventHandlers: refactoring, added 'on', 'off', and 'trigger' methods (aliases for bind, unbind and event).
Merge https://github.com/kakserpom/phpdaemon
add state of read header packet