ResourceHttpRequestHandler explicitly closes a Resource's InputStream

Issue: SPR-11644
Revised ByteArrayOutputStream handling in MarshallingView and co

Issue: SPR-11646
Polishing
Expand resource handling mechanism