Fixed bug 2798241: Can start up with no selected application now
The majority of the code changes/additions deal with the ability to delete files from the filesystem during a sync/update.
Also, these files can be "rolled back" to stay in line with the database and the xml instance document if an error occurs.
I added code to handle deletion of FileType objects that may be referenced by other objects.