Changed the upload authentication mechanism. Updated UploadWriter.