Merge pull request #710 from bhariharan/smart_sync_sample

Updates to show sync status on main page and some bug fixes