Rewrote the /permissions command to remove spaghetti code and fixed an
issue with removing groups/users or adding groups causing NPEs.