CVS is buying health insurance giant Aetna in a deal that could transform healthcare, the company announced Sunday.