Add support for multipart responses. Work in progress.