From Classical to Quantum Plasmonics in Three and Two Dimensions