Add nan as dependency.
Use nan to wrap around V8 functions.
Link to AppKit.framework on OS X.
Merge pull request #4 from atom/nan

Use nan to make module compatible with node v0.11.x