Set JAVA_HOME environment variable; currently to 1.7.
Simplified gitignore rules.