Slightly more efficient, easier to read, request parameter parsing.
More efficient/cleaner multipart output handling.
Use a separate stream when handling multipart.

Avoids fringe case of output buffer overflowing before we get to
multipart output.