By rblanker: Made REST debug output better readable.