Cleanup handling of BinaryResult

Simplify the logic to stack BinaryResult instances on top of each
other when applying the base64 and/or gzip transforms before writing
to the HttpServletResponse.

Change-Id: I1a477d5b9888cac981021149905a9aaa8f2f89ad
3 files changed