patches from the Debian package

Hi, 

I'm forwarding a bunch of patches that have been in the Debian package libhtml-formfu-perl for a while. They were mostly added in reaction to pestering by our automated QA tools, but still I felt they would be useful if applied upstream. 

Florian