[SERVINF-71] Pretty print formatted results.

Now HTML, XML and JSON are pretty printed (the XML is also formatted first) and
plain text display is also improved.