refactor json response KO conversion for issue #7

also starting to switch to Raven.js logging instead of console.debugs