Add .gitignore and install java 8