1. A method for configuring a microgrid, the method comprising: initializing a first configuration of the microgrid having at least one distributed energy resource and a set of microgrid elements, the at least one distributed energy resource being autonomous and the set of microgrid elements being connected in a peer-to-peer processor network, wherein the at least one distributed energy resource is at least one small scale power generation element selected from at least one of a wind turbine, a photovoltaic system, a fuel cell, a geothermal power generator, a microturbine, a combustion turbine, a reciprocating engine, a hybrid power generator that uses both heat and power, or a hydroelectric power generator; verifying an address for each element in the set of microgrid elements; receiving status data from the set of microgrid elements that indicates a reconfiguration of the microgrid; responsive to receiving status data from the set of microgrid elements that indicates the reconfiguration of the microgrid, re-aligning the set of microgrid elements to form a second grid configuration; and executing the second grid configuration.