Making user code run in its own context under node.
This should fix the default 'require' path issues and __dirname being
broken.

Supersedes #429, partially fixes #423.