Added channel/private message logging, and added configuration file handling.