Quantum photonics with layered 2D materials