provide a friendlier API for multipart forms.

Also, escape the name and filename tokens, and include some small
changes from CR.
Merge pull request #949 from mlc/friendly_form_building

provide a friendlier API for multipart forms.