Refactor in transfer state, bringing some ordering here, preparing to remove dependency from vuze DownloadState.