More functionality for seishub.core.db.util.formatResults()

These changes are mainly to allow for a pretty XML and JSON output of nested data. XHTML output is supported but not really pretty for nested structures.

Furthermore the formatResults() function can now also use a list of dictionaries as input. The old SQLAlchemy ProxyResult object still works.