RFC: Pretty print json and xml in debug mode

In debug mode (and if available in the case of json) pretty-print responses. It makes debugging and documenting easier