Added support for custom document converter.
 The converter is invoked at the end of the HTML transformation step.
Cleaned the test spec.
Merge branch 'temp'