Real-time shaping of entangled photons by classical control and feedback