Started implementation of the event loop based on epoll