GRADLE-902 Adds support for ANTLR v3 and v4.

This update allows ANTLR v3 and v4 to be invoked for grammar parsing / source generation if they are added to the Gradle classpath at runtime.  If neither is present, Gradle will fall back to ANTLR v2.