added get_userlist function to WHOHandler.c and wrote some test code