add gitignore, import nan to support node v0.11.x