Magration to node-gyp, fixed compatibility issues with node 0.10.x

[Migration from eio_custom to uv_queue_work](https://github.com/joyent/node/wiki/How-to-migrate-from-eio_custom-to-uv_queue_work)

[node-gyp](https://github.com/TooTallNate/node-gyp)