Generate ImportPathElements using html_gen instead of html/template.

Using html_gen allows performing more complicated logic than is
acceptable for html/template, and it avoids having to worry about
manually escaping when doing fmt.Sprintf to generate html.
Add a test for ImportPathElementsHtml generation code.

Compare output with previous html/template approach for now.