Integral currents in metric manifolds, with applications to Poincaré inequalities