Fixed signaling issue for multiple clients

Implemented the grouping system so that signaling can happen for more
than 2 clients.
Use sendToGroup(message) function to broadcast a message to a group.