Conformal Blocks and Generalized Theta Functions