TS-2311: ESI: support responses that are of other text content type as well as non-200 status response

We want to enhance the ESI plugin so that we can support transformation
for other text content-type such as javascript.  We also want to
enable ESI transformation for non-200 response (e.g. 404)