Virtual power plant with energy storage