Added timeout event to wsi and changed handling of callbacks for add and del pollfds
Test server using libevent