added .gitignore in logs/ empty directory.

so that directory is not ignore by git.
Also added .gitignore in maven modules to ignore target/ build dir.