Single-Photon Devices and Applications