Use https://github.com/rvagg/nan to support all versions of Node's API.
Bump version to 1.0.