Adding hack to make the DELETE response look more like valid JSON
Fixing js-client delete test.

- using Jackson ObjectNode instead of HashMap for consistency.
Merge branch 'matzew-master'