Client-side upload fully functional

Fixed a bug caused when the uData used for upload was removed from
memory before being used.
Fixed UploadThread so that it properly send the U filename\r\n