Updated noderesolver snipper.

The noderesolver snippet now adds all of the boilerplate code required
to turn a node-style function call into a promise.