Added GroovyScriptFactory

Added GroovyScriptFactory, which allows to create scripts that can import other scripts.