began implementing code to retrieve permission info using the gen query interface
Added code to understand the gen query stuff a little better.
modified the permission lookup functions to use the GenQuery interface