The metatheory of physics theories, and the Theory of Everything as a quantum