Update gitignore.

Added project files and target directory to the ignore list.
Add Maven `pom.xml`
Add log4j properties.