Checks whether there are any resources to sync before looping through them. Some minor refactoring.
Adds versioned CodeClimate badge.