Quasi-regular Dirichlet forms on Riemannian path and loop spaces