Add support for multipart responses. Work in progress.

Can `$parts` be removed? I don't see it being used anywhere.