fix 'curl' command output

now pretty-prints JSON output, and otherwise prints the response body
Merge pull request #1 from cloudfoundry/fix-curl-output

fix 'curl' command output