Building Energy Flexibility and Demand Management