Lib: adjust to new Server capacity logic

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
CGI: use new Events mechanism

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Logger: replace old epoll calls by new Events mechanism

Signed-off-by: Eduardo Silva <eduardo@monkey.io>