Move loading of membergroups to a central function
Cache that
Missing a global
@todo a bunch more refactoring and rewriting for this new function
Signed-off-by:Joshua Dickerson <joshua.a.dickerson@gmail.com>