Dynamic Management Of Integrated Residential Energy Systems