Added in some basic querying for use in SysopCommands. Will be adding to this and refactoring, but for now I just want to get it checked in.
I ran into some issues with merging these files since two of us were making changes at the same time. I will try to correct this as best as I can.