GRAILS-7217 Auto discover of JAVA_HOME

I have extracted code that guesses JAVA_HOME from Groovy project and added it to startGrails script