Fix gitignore to allow some IntelliJ files that are useful for building
Add IntelliJ project, artifact settings and module settings
Remove Eclipse leftovers
Fix a few warnings
Reformat
Fix main JAR artifact location