Salesforce turned software training into a trail of small wins. The clever part is what happens between reading the lesson and earning the badge.