initial import from groovy project

  taken from EScriptMonkey repository. Does not compile yet