#580: html_form.js, define classes for xml / file upload(s)

Resolves #580.