Uncertainty and information: Foundations of generalized information theory