Progress for saving files now works better

The progress bar is now updated as XML nodes are
written to the disk. This creates a reasonably
accurate representation of the saving progress.