Use NAN to remain compatible with 0.11

Hi, 

I took the old NAN version from @oleavr and updated it to use the latest version of NAN and rebased it on the latest version of mmmagic.

This should handle issue #16