The iPod maker is purchasing Beats Electronics and founders Dr. Dre and Jimmy Iovine are moving into executive offices in Cupertino.