Generation and control of photonic quantum states in microresonators