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.
Fix overflow of file input field
Merge branch 'master' into imp_6_2