JSON Canvas creation

This pull request implements a way to load a Canvas from a JSON description.
Some examples are converted so that they are loaded via JSON.