Improve edit user, paper and compiler

Include JSON-Patch library to generate JSON Patch file.

Adapte the code to the new library