Support latest node/nodewebkit

Builds on @porsager's work and uses the latest nan library compatibility