Coordination And Competition In Optimal Dispatch: Distributed Algorithms, Saddle-Point Dynamics, And Iterative Bidding