moved templates to a dedicated class
starting to migrate templates to xtend instead of java so they are more
readable
factorize duplicate code
many fix in the project generation