A decade ago, the idea of self-driving cars on American city streets was almost unthinkable. But a series of contests spurred the development of software and hardware that have brought us to dawn of the next automotive revolution.