log.scm: Implement IRC logging

* log.scm: New module.
* bot.scm: Use it.
* Makefile.am (SOURCES): Add `log.scm'.