use nan for 0.8->0.11+ compatibility

fixes #42
Merge #43 from @rvagg
Add travis testing for nodejs 0.11
0.1.9