Nonequilibrium Vortex Dynamics in Superfluid Phase Transitions and Superfluid Turbulence