great node server rewrite #3.

This should hopefully support everything that we want to do.