Port of Viridian Spark HtmlTextWriter extensions. Renamespaced, with basic StyleCop rules passing.