Move build_element_from_tag out of the HTML parser.

This function is not particular to the parser, so should live in the DOM.
auto merge of #3853 : Ms2ger/servo/create, r=Manishearth

This function is not particular to the parser, so should live in the DOM.