add "name" parameter to HTML form element

Add a bit more flexibility to FormTools/Form component. It is
desireable, in certain situations, to be able to set the 'name'
parameter of the form element.
Ensure that any form name or id is escaped before being output