node.js inspired integration of lua-ev with sockets,etc