Set language level to Java 1.6, tidy POM file and added IntelliJ project files to gitignore.