Chat Logging start

Currently logs perfectly, except for the following:

If user has PM Windows disabled, any messages they send will be sent to
target.txt rather than target.PM.txt. Messages they receive still goto
target.PM.txt perfectly fine, as do the channels and team go where they
are told.
Merge remote-tracking branch 'upstream/master'
Logging

Logging working fully now. Will only send chat messages, not any server
or duel requests etc.
Merge pull request #158 from Rayth/master

Chat Logging