Elasticsearch needs java before it will work

This worked before because the elasticsearch package specified java as a
dependency, but the package install now wont work without the puppet
class.
Merge pull request #510 from alphagov/fix-elasticsearch-java-dependency

Elasticsearch needs java before it will work