Variational Convergence of Gradient Flows and Rate-Independent Evolutions in Metric Spaces