Added check for /usr/libexec/java_home

This is the preferred way of choosing a JVM on OS X

http://developer.apple.com/library/mac/#qa/qa1170/_index.html
Fast exit from loop in StaticTypeCheckingVisitor.inferReturnTypeGenerics
GROOVY-3258 - groovy.xml.QName uses string interning of volatile data and the trim antipattern
GROOVY-5858: "string".count('') fails
GROOVY-5858: "string".count('') fails (oops, fix typo)
GROOVY-3394 - public api documentation for entire groovy.util.slurpersupport package - especially GPathResult
GROOVY-5868 - ConfigObject is unexpectedly no longer Cloneable
GROOVY-5370: ConfigSlurper - multiple environment blocks broken

All credit for the patch and tests to Richard Rattigan. I just created a pull request and did some minimal refactoring.
GROOVY-5452 - Process should have a method called closeStreams()
refactoring to use closeStreams()
Merge pull request #97 from PascalSchumacher/GROOVY-5452

GROOVY-5452 - Process should have a method called closeStreams()
Merge pull request #90 from PascalSchumacher/GROOVY-3258

GROOVY-3258 - groovy.xml.QName uses string interning of volatile data an...
Merge pull request #93 from PascalSchumacher/GROOVY-3394_Part2

GROOVY-3394 - public api documentation for entire groovy.util.slurpersup...
GROOVY-3689 - Element.serialize
GROOVY-5761 - getBytes for GString
Happy New Year!
GROOVY-4670: groovy.ui.Console cannot be extended

https://jira.codehaus.org/browse/GROOVY-4670
GROOVY-4572: Provide File method to get directory size

https://jira.codehaus.org/browse/GROOVY-4572

Original patch created by Evgeny Goldin. I just ported the patch to 2.0 and did some minimal refactoring. All credit belongs to Evgeny Goldin.
Merge pull request #98 from PascalSchumacher/GROOVY-3689_DOM_Element_serialize

GROOVY-3689 - Element.serialize
GROOVY-3689_DOM_Element_serialize