ipro: whitelist a few contenttypes that we should record and cache

This prevents caching of html in the IPRO flow. More accurately,
it make sure that only contenttypes that are applicable will be
cached and treated as such.

It also modififies the in place resource recorder:
- Adjust the interface to be able to bail out as soon as the
  decision can be made that IPRO cannot be applied. This prevents
  having to buffer a lot of responses
- Performs a sanity check on the content length received in the
  response headers (if any).