Some improvement of epoll and ioloop; add epoll test