New namefile and new structure for the demos

The change to the makefile allows its inclusion and/or call from external projects safely and monitors all files properly so no job duplication is ever done. The demos are restructured to suit better the new build system and to allow them to compiled for production in the future.