Development Of A Software Platform With Distributed Learning Algorithms For Building Energy Efficiency And Demand Response Applications