Stationary Entropy Principle and Renormalization in Normal and Superfluid Systems. I. Algebraic Formulation