added custom event support to LibEVHTPServer