Validates groovy syntax

Added syntax checking to the DSL script. 
![syntax_check](https://f.cloud.github.com/assets/4181469/1057009/e00fd1d2-1166-11e3-9020-6e7541fa4198.png)