add log attribute to bot and networks

Each network can have its own logging, so that we can have per-network
log files, but the bot sets the default log when no other log is set.

Channels do not get a log object, because they'll have something
different for in-channel activity.

Fixes #2