Further cleanup:

* Use less of Nan module
* General memory management cleanup
* Cleanup handling of v8 namespace.