[Blasq Rappor] Refactored uploading handling into UploadManager.