support for subclass custom attachment handling

Aslo add some support for open-ended body pre- and post-processing.

Bug: 12787313
Change-Id: Ie2aeb9f5cf1e10f9e21a3bd1cc2e1db489319b7f
6 files changed