GRAILS-7217 Auto discover of JAVA_HOME

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