irclog: Add LogWriter interface

LogWriter is an interface for wrapping all msg output logics,
which will allow us to output same log using different format by simply
implementing different LogWriter

Now we have HtmlLogWriter for web pages, we can implement JsonLogWriter
if we are going to support web api with JSON

Signed-off-by: Boqun Feng <boqun.feng@gmail.com>