Foams and concentrated emulsions : dynamics and phase behavior