Add a gitignore file

Add a gitignore file that ignores build files generated by Apache Maven,
Gradle, NetBeans, Eclipse and IntelliJ IDEA. More information can be
found at https://help.github.com/articles/ignoring-files