The textbook app found its business by changing who paid. Then it bought a bookstore operator and took on the messy business of getting everyone ready for class.