add node 0.11 compatibility

I'm using `nan` module for this, because handwriting interfaces
for both node 0.10 and node 0.11 turned out to be pain in the ass.
Merge pull request #6 from rlidwka/nan

add node 0.11 compatibility