Apple just hit an all-time high, and the same forces that once looked like threats to its business may now be the very things that push it past Nvidia to become the world's most valuable company.