Studies of the tokamak edge with self consistent turbulence, equilibrium, and flows