Refactor do_scheduled_syncs into do_syncs

Fixes #56.

Props @tlovett1