Self-driving cars have the potential to dramatically change transportation, but collisions between humans and autonomous vehicles pose complicated legal challenges.