start the refactor to using nan
compiles with nan
passes all nodeunit tests with node v0.10.15