Conformal and current algebras on a general Riemann surface