Port to NAN, new API, updated doc