Describir: Distributed Energy Management Using the Market-Oriented Programming