Ported to NAN 1.1.0

This addresses #252. Uses NAN 1.1.0 (yet unreleased). Tests pass on 0.10.28 and 0.11.13.