Chern-Simons and two dimensional conformal field theories in a covariant lagrangian approach