Use twisted to process events and remove qtreactor.

Also:
- improve logger format
- reorder imports
Merge remote-tracking branch 'refs/remotes/ivan/feature/remove-qtreactor' into develop