Add support for secondary groups (ROOT-4126)
Port previous patch on MacOsX
Fix way the path name is passed to cache handling functions
Keep at most 1 old session logs by default