convert to gyp

This converts the module to use gyp.

The test pass. Had to register the module using NODE_MODULE to get it to work.

this should close #7