Syntax and debug info
Fixed some syntax in shell.js do_search
Added json python for debug info on DBG_Error