Refactor chansaver (#674)
Refactor chansaver (#674)

CChan now keeps track of the state. The module no longer needs to
rely on incoming messages, but can just mark whether each channel
should be kept in config or not. Cleanup things and use C++11 for
loops while we're at it...

badloop/znc,ollie27/znc,Kriechi/znc,KielBNC/znc,TuffLuck/znc,KiNgMaR/znc,Kriechi/nobnc,Mikaela/znc,jreese/znc,Adam-/znc,Phansa/znc,DarthGandalf/znc,KiNgMaR/znc,wolfy1339/znc,DarthGandalf/znc,elyscape/znc,wolfy1339/znc,Kriechi/nobnc,Zarthus/znc,ollie27/znc,jreese/znc,badloop/znc,evilnet/znc,elyscape/znc,kashike/znc,Hasimir/znc,YourBNC/znc,GLolol/znc,aarondunlap/znc,dgw/znc,Hasimir/znc,aarondunlap/znc,kashike/znc,kashike/znc,ollie27/znc,psychon/znc,jpnurmi/znc,anthonyryan1/znc,markusj/znc,badloop/znc,Zarthus/znc,znc/znc,TuffLuck/znc,KiNgMaR/znc,Kriechi/znc,jpnurmi/znc,GLolol/znc,jpnurmi/znc,KiNgMaR/znc,Mikaela/znc,wolfy1339/znc,evilnet/znc,BtbN/znc,anthonyryan1/znc,znc/znc,GLolol/znc,aarondunlap/znc,Adam-/znc,BtbN/znc,Hasimir/znc,GLolol/znc,Mkaysi/znc,ollie27/znc,reedloden/znc,Hasimir/znc,TuffLuck/znc,znc/znc,wolfy1339/znc,badloop/znc,psychon/znc,anthonyryan1/znc,reedloden/znc,Hasimir/znc,jpnurmi/znc,DarthGandalf/znc,Kriechi/znc,Adam-/znc,jreese/znc,evilnet/znc,aarondunlap/znc,Mkaysi/znc,Adam-/znc,YourBNC/znc,anthonyryan1/znc,aarondunlap/znc,evilnet/znc,Kriechi/nobnc,Adam-/znc,jreese/znc,Kriechi/znc,Kriechi/znc,znc/znc,dgw/znc,kashike/znc,KielBNC/znc,reedloden/znc,Zarthus/znc,DarthGandalf/znc,Zarthus/znc,psychon/znc,elyscape/znc,elyscape/znc,Mkaysi/znc,markusj/znc,badloop/znc,jreese/znc,Phansa/znc,badloop/znc,markusj/znc,Zarthus/znc,TuffLuck/znc,Mkaysi/znc,reedloden/znc,anthonyryan1/znc,dgw/znc,BtbN/znc,Phansa/znc,KiNgMaR/znc,znc/znc,Mikaela/znc,aarondunlap/znc,Mkaysi/znc,reedloden/znc,DarthGandalf/znc,znc/znc,DarthGandalf/znc,Kriechi/znc,Mkaysi/znc,dgw/znc,GLolol/znc,Hasimir/znc,markusj/znc,KielBNC/znc,ollie27/znc,TuffLuck/znc,dgw/znc,Phansa/znc,psychon/znc,BtbN/znc,TuffLuck/znc,anthonyryan1/znc,psychon/znc,jreese/znc,Zarthus/znc,YourBNC/znc,Mikaela/znc,Adam-/znc,evilnet/znc,Adam-/znc,Phansa/znc,jpnurmi/znc,badloop/znc,evilnet/znc,Hasimir/znc,jpnurmi/znc,kashike/znc,KielBNC/znc,kashike/znc,aarondunlap/znc,Mikaela/znc,dgw/znc,Mkaysi/znc,GLolol/znc,BtbN/znc,ollie27/znc,YourBNC/znc,elyscape/znc,Mikaela/znc,reedloden/znc,jpnurmi/znc,YourBNC/znc,psychon/znc,wolfy1339/znc,anthonyryan1/znc,markusj/znc,wolfy1339/znc,BtbN/znc,markusj/znc,KielBNC/znc,KielBNC/znc,TuffLuck/znc,elyscape/znc,YourBNC/znc,Phansa/znc,Mikaela/znc,KiNgMaR/znc