A callback generator for proxying node.js callbacks into promises.