Generic drugs make up 90% of prescriptions but only 23% of drug spending. Yet hidden fees and spread pricing mean insurers often pay more than they should. Here's what really happens behind the scenes.