Behind four familiar counters sits a less familiar machine: a mostly franchised platform turning coffee, burgers, chicken and subs into royalties, data and global restaurant growth.