updated default config.js.template
added sendMessage for local functions (ie. dispatcher register)
fixed up ping
error fixes in listener
merge upstream, change to messageCb/errorCb
oops, changing that back