batch signalling channel messages and send them at most every second

Please don't review this just yet...the code isn't tidy or tested. Just for experimentation.
Maybe use 4 = signs, like ====, since === is actually valid javascript (not that anyone really should be passing messages containing javascript, but they might)