Create AjaxPromise to wrap jquery ajax requests