Update for Node 0.11.x (Fixes #355)

Tested compiling against 0.10.28 and 0.11.13 on 64-bit OS X.

First time touching the node module API, might be a little rough, did this pretty much just against the changelog for nan.