The oil lobby once crushed electric vehicles. Then battery breakthroughs and Tesla's charging network changed everything.