Renamed java scripts to lifecycle convention.

- Added java_cleaned.sh script for removing JAVA installation.
- Work dir is set to $COSMO_HOME.