Refactored StatementExecutor, moving all variable/library state and logic to the SlimExecutionContext.