Add support for chunked message trailers

- inform server that trailers are acceptable with chunked responses
- merge trailers into headers

Includes #316, #317