Added "type" selection for text inputs.

This allows specifying new HTML5 input types like email, tel, url.