Fix XML header, add JSON and XML to torrent stats.