Change Travis to use 3x3 test matrix (jdk x nvm).

By switching to language: java, we can use a full 3x3 test
matrix, testing [jdk6, jdk7, jdk8] X [node 0.8, node 0.10, node 0.11].