Roots, relations and centralizers in three-manifold groups