TextBlockPainter Refactoring

Still in progress.

Some tests for TextStyle elements and Span

Refactoring some names in Link and TextBlockPainter. I took out pt and ph for Link as it was not being used anywhere.