Outline of a generally covariant quantum field theory and a quantum theory of gravity