Quantum Photonics With Layered 2d Materials