Improve REST debug output.
Merge pull request #60 from nanliu/debug

Improve REST debug output.