Clean up .gitignore and enforce language-level in pom.xml

Sorry about the formatting of pom.xml. I asked Eclipse to auto-format and it used a lot more whitespace than I thought it would. What formatting do you use?