Utilities to make it easier to use promises in browsers and node.