In acquiring Shazam, Apple gets a trove of music data and a software brand that's mastered the art of recurring revenue.