Add `upload_rm` file transfer option

Similar to `ln_rm`, this first performs a remote upload
and then deletes the file locally if the upload and hash
check were successful.
Fix up error logging
Merge pull request #2803 from joshmoore/rebased/develop/upload-rm

Add `upload_rm` file transfer option (rebased onto develop)