package: update "nan" to v1.1.0
biding: attempt at refactoring for nan v1.1.0 API