allow changing text-input formlet type

HTML5 allows far more text-based input types, such as email or date.
Instead of attempting to export the finite set of input elements,
allow user to define type of the text-input while staying compatible
with the old code.

Signed-off-by: Jan Dvořák <mordae@anilinux.org>