Implemented the generation (project compilation).

The button 'generate project' now works. It creates a
'build' dir in the project dir and fills it with a html
and a json containing data from the project.
It is not completely ended in the view side, but the
generation works.