Prefer json to txt
errorClass: Further protect against nil errorMap.  Fixes #285
Allow binding a file upload to multipart.FileHeader