Implement functionality triggered by routes for getting projects and canvases

Please be aware that the database scheme changed. You have to update your database.
These "$json["..."]" lines are still here. I think the problem was here