Generalized Hirota Equations and Representation Theory. I. The case of $SL(2)$ and $SL_q(2)$"