In a massive merger of prescription drug benefits managers, Express Scripts announced Thursday that it signed a $29 billion deal to buy Medco Health Solutions.