Rename some function parameters
Add epoll based event loop

Change event management to better fit epoll semantic.