Channel Logging Module

This adds a channel logging module (channellog) and freshens up the API slightly (a mode action!).
Contains absolutely nothing suspicious or out of the ordinary.