Progress tracking

Added code to support tracking progress of syncing
Retrying when download fails.
Merge pull request #23 from appglu/progress-tracking

Progress tracking