System for Managing Distributed Energy Resources