The Development Of Distributed And Peer-To-Peer Systems For Future Smart Grids