Add support for Java 8.

Support for java -source 1.8
Also change Travis to use 3x3 test matrix (jdk x nvm).