Distributed generation and demand response dispatch for a virtual power player energy and reserve provision