switched a lot of static functions to member ones

also added global vars for a couple things in the same place, like
botname and irc chan names.