Fixed possible issue.
The group chats we invite a friend to are now stored.
Send ping packets in group chats every 30 seconds.
Auto delete inactive peers in the group chat.
Merge remote-tracking branch 'upstream/master' into ID-IP-r1
loginit(): if logfile is already open, log a message instead of closing the current and opening a new file