Tesla is developing a charger that automatically connects to electric cars “like a solid metal snake,” Elon Musk tweeted.