Add an action for mode changes
Move quit action call to before channel exodus
Implement channel logging
Fix the order of unloading channel mode data since I somehow bussed that up last time