Update the HTML framework to support the PDTS stage and add matching markup in the TS.
Remove the reinterpret_pointer_cast(std::shared_ptr) overload.

It wasn't included in N4077.
Fix up the rest of line breaking in Firefox and Prince.