Ported to NAN 1.2.0

This addresses #252. Uses NAN 1.2.0. Tests pass on 0.10.28 and 0.11.13.