Compiler set to 1.7

Java compiler version and source set to 1.7 through
maven-compiler-plugin. Adjusted .gitignore.