About six years in to building Rx Savings Solutions, founder Michael Rea was ready to give up. But he encountered some luck and kept pushing to solve a daunting problem: transparency in prescription drug costs. Now, his company has sold for $600 million.