Add openjdk7 and dependency caching to travis.