delete failed uploads and make sure the response for a
successful upload includes the metadata of the resource.
Merge pull request #330 from continuuity/feature/fix-upload-response

delete failed uploads and make sure the response for a