Add a helper method for retrieving a group's gid

This uses `getent group` on "unix" systems `lsgroup -a id` on aix
systems. Windows hosts explicitly don't support this method.
Merge pull request #381 from nicklewis/group-gid-method

Add a helper method for retrieving a group's gid