Changed IRC hooks to use std::function
Moved chat functionality into ChatControl class