Remove usage of obsolete IApplicationRegistration
Avoid loading response in to memory when injecting glimpse scripts.