Make Html/FormBuilder output XHTML-compatible markup

Make the HtmlBuilder and FormBuilder generate XHTML-compatible markup, so that the framework can be used more widely