Heat pump aggregation, optimization and control