Changed the text implementation to be more generic and prepare for next steps
Full text support and cleaning of the tests

The full typesetting of HPDF is now supported.