Added .gitignore to keep res directories

eclipse doesn't create missing res directories,
and it leads to build failure.
So I added .gitignore files to keep these directories.