STORM-295. Add storm configuration to define JAVA_HOME

New pull request with all the previous multiple commits squashed together.