Removing cache and log files and updating gitignore

I removed all files and folders from cache and log folders to cleanup the project, and I update the gitignore to ignore these files in this folders to avoid problems with the cache and log folders in other users machines.