added two new javascript functions:
 * logResponse
 * debug
use them in demo script
define dedicated appender for scripting output