Text this: How Elon Musk's Tesla survived its early years—despite its first electric vehicle being glitchy.