A simple decorator to return promises instead of using callbacks.