Reworked handling groups for lim-agentd, trying to get all secondary groups in also. Use setsid when daemonizing the process.