Use the JSON formatter from Scala library and removed dependency on lift-json.

It made the JSON creation slightly more complicated, but reduces one external dependency. The scala library also properly escape "/" (which lift-json doesn't).

This subsumes #834.