Static and extension methods to create promises from node style asynchronous functions.