(CFACT-59) Add id and gid facts

Yeah, how not to design an API 101.