node-ify the necessary server bits