CGP.js: split draw(id) into prepare_draw(id) and draw(id)
Add a configuration option for sync/async choice for the canvas graphs