Active Management of Electric Vehicles Acting as Distributed Storage