Automakers and energy giants are rethinking the environmental impact of motorsports and next year's edition of the world's oldest endurance race will be won in a car powered by wine dregs.