Two-parameter deformations of logarithm, exponential, and entropy: A consistent framework for generalized statistical mechanics