Fix totalSize property in progress event
Implement onbeforesend and process response callbacks