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.
Is copying messages from queuedMessages to batch necessary?