Initial fix but additional cleanup needed.
Fixes #1928 - with some cleanup of invalid and unused code.  Now adding functionality requested by JT - rather than making all files succeed or fail, make it so that if some of the files fail that others can still succeed and not have to be uploaded again.  i.e. if uploading 100 files and 2 fail, should only have to reupload the 2 - not all 100.
#1928 Transactions cleaned up and modified code per JTs request so that some files can fail to upload but they will not prevent other files that upload without errors from uploading.  i.e. if uploading 100 files and 2 fail, the other 98 are uploaded and indexed.