Added working versions of .gid and .groupowned? and refactored some private security methods.