Add uid/gid allocation table (#3498)

Commit 2c5ce227ae pushed by mart-wmaster