Elon Musk struck a deal to buy Twitter. Here's the inside story | Fortune