Pass XHR object into onComplete callback

Allow the onComplete function to have access to XHR object in order to
parse header properties has response and support the way Liferay
responds to file uploads via action method.