Processed event loop refactorization.
- thread interface excluded into separate private class
- event loop has now necessary methods for handling the loop
- added possibility of canceling of the loop