Quantum Coherent Control of Atomic and Molecular Spin Centers in an STM