Holistic Management of Energy Storage System for Electric Vehicles