Update irc.py to use bot.logger

This updates irc.py to use the bot's logger (with DEBUG level) to print raw irc input, rather than using `print`.

This also makes BotConnection initiate the PermissionsManager before connecting to the server.