Across the country, towns and cities of various sizes envisioned an electrified public transit system that could shuttle residents with vehicles that produced no carbon-filled exhaust.