Adding span support into structured text toHTML method

Copied almost verbatim out of python kit
Javascript isn't that clean yet, but functionality is there.
Still need to figure out how qunit works, until then no tests yet :/
Also added Link.web fragment type ¯\_(ツ)_/¯