Change project directory structure.

The directories are redesigned and the .gitignore file is configured.