updated default config.js.template
added sendMessage for local functions (ie. dispatcher register)
fixed up ping
error fixes in listener