[ CoursePig.com ] Integration of Distributed Resources in Smart Grids for Demand Response and Transactive Energy