extract the irc client from the main irc setup code.

* update handlers to no longer take a bot in config and get it from the request.
Merge branch 'extract-irc-client'