Completely gut the event system to replace libevent with libuv, courtesy
of Node.js.