Store CTCP ACTIONs recieved as well as normal PRIVMSGs.

Prepends CTCP ACTION messages recieved with a "* " before storing them.
Additionally change AddMessage to accept const CString&
Merge pull request #599 from NuclearW/awaystore-action

In awaystore, store CTCP ACTIONs
make the log filename lower case always

this fixes an annoying bug where two separate log files will be written
if an irc client sends to channel #Foobar and another irc client sends
to channel #foobar.
Merge pull request #590 from FruitieX/master

Use only lower case characters in log filenames
Full-fledged query buffers

Store query buffers per query the same way it's done for channels.

This allows clients to implement persistent query buffers. Queries
remain open across clients and sessions until a client explicitly
sends a command to clear a (closed) query buffer.

A new config option AutoClearQueryBuffer that default to false
ensures behavioral backwards compatibility, and another config
MaxQueries protects from OOM eg. due to PM attacks.