Changed the method of looking at which files are still being changed to use
Modification Time rather than File Size. Also modified flow so that
last modification time will only be written to our config file if an upload was
successful, thus making repeated calls less likely to 'lose' a document.