Add client settings events, demoMode variable, tweak sendMessage