(CFACT-59) Add id and gid facts

I've fixed the lack of documentation but I can investigate this as well.