Understanding the Interaction of CO and O2 with MgO(001) and Supported Metal Atoms: Towards Single-Atom Catalysis