WIP: Added server side multipart upload code. Some modifications on client side.