Node.js support.

This branch addresses a couple of deficiencies required for supporting node.js applications.