Stav dette: Distributed Optimization with Application to Power Systems and Control