Bug fix for exception reporting in groovy scripts.
Bug fix: now configuration of FileAppender does not fail when engine configuration script fails.
Bug fixes and refactoring.
Optimized imports.