'would validate' method, file support, fixes

Add documentWouldValidate() method to form instance to check whether a
document would validate without going through the 'render form and
submit' cycle.

Add support for file fields. This requires integration with an external
library which handles JavaScript assisted upload of files, so doesn’t
work out of the box.

Fixes and tweaks to UI.