Implement java.io.Closeable 

Implementing the java.io.Closeable interface let java7 developers use the handy try-with-resources construct.

I've also added in the .gitignore a new exclusion for IntelliJ project files.