Improve sync progress reporting

 * Add a state property to the sync progress reporting to
   facilitate showing the correct state at the start of the sync
   when enumerating items to sync.

 * Start work on test for sync progress reporting