How to build demand response platforms that aggregate flexible loads, integrate with energy markets, and deliver reliable grid services.