A tiny number of helper functions to use with bluebird (other promise libraries not tested) for higher level functions such as sequence etc