Use NAN for compatibility with Node 0.11+

Use the [NAN](https://github.com/rvagg/nan) module to get this working with the new version of node.
Seemed really odd to use node's namespace but not v8's. Decided it was probably best to be explicit with node too.