Improve multipart-form handling

Based on tests from the tiddlywebplugins.form module.

These changes guard against "interesting" input and ensure
that tests in twp.form do the right thing.

In the past twp.form uses its own multipart-form parsing.