Fix debugging output stuff.
Better XML output in debug mode.
Get medium response group (images) turned back on.