As social media's poster boy approaches 40, he's having his Bill Gates moment: Mellowing (a bit), maturing (a bit more) and upending his company with staggering confidence. It's a big bet on the future of daily human life—and his legacy