Add more server-side emits for user disconnect

Also slight syntactical changes and new functions for handling any case
involving a user in a group or list of friends