Weak Solutions For The Ricci Flow On Closed Surfaces And Prescribed Curvature Problems