Layered Networks, Equilibrium Dynamics, and Stable Coalitions