Groups.ini can contain spaces around commas in values.

This includes Permissions, Inherits and Commands.
Also fixed an unlikely but possible crash with group colors.
SocketThreads: Fixed sending to closed socket.