cleaned up a bit; replaced spray-json for json4s