Add duringCallback function to be called about progress of uploads
Fixed code examples and added duringCallback param

Fixed code examples (forgot to add semicolon to variable declarations).
Also added the example for our new duringCallback parameter, which fires
everytime a byte is transmitted or 50 ms passes, whichever is less
frequent.