I'm not so hopeful about electric cars. The nice version of the Tesla S has an 85kwh battery to accomplish adequate range, and its drivetrain is probably pushing 90% efficiency. It really does take 80-100kwh to drive a midsized sedan for 250+ miles.
Even a doubling of battery power/weight ratio from now is optimistic. And charging times are tied to that massive storage - a 20kw source (the equivalent of a 200 amp circuit at home) would take over four hours to charge it. And that's, say, 20 amps at 1000 volts - enough to jump a spark a few feet and leave a smoking puddle where your shoes used to be if there's a problem. So faster charging requires specialized charging stations that must be carefully managed, a lead Tesla has taken. And even those stations can only do half-full on power. The battery won't take the abuse of high speed charging all the way.
So the car tech is already here. The charging problem, on the other hand, is borderline unsolveable.
Several reasons:
1. there are huge amounts of oil in places like the oil sands that only recently became economically viable to extract. Economics says that the price of a commodity is the cost of production of the marginal unit. We're still extracting lots of $30 oil, but we're also extracting some $80 oil. In the future, there'll be less $30 oil but we'll still have lots of $80 oil. But that $80 oil will have the benefit of 50 years of technological advances to drive its price down.
2. The cost of solar energy is currently following Moore's law. If that continues it won't be long before it's much cheaper than everything else. So many of the current uses for fossil fuels will be replaced with solar energy because it's cheaper.
That won't unseat petroleum's status as the best portable dense energy source unless
3: We're putting a lot of money into battery & capacitor research. Right now batteries are heavy & expensive & slow to fill compared to a gas tank, but I'm willing to bet that this will change sometime in the next 50 years. Once an electric car is better in all ways than a gas one, demand for petroleum will drop like a rock, and so will prices.