Noncanonical quantization of gravity. I. Foundations of affine quantum gravity