_process = function (onSuccess, onFail) {
    _onSuccess.push(onSuccess);
    _onFail.push(onFail);
  }
Process onSuccess and onFail callbacks: add them to the queue.
Once the promise is resolved, the function _promise is replace.
@param {Function} onSuccess
@param {Function} onFail
@private