Add irc_output to heka

All four of those callbacks are identical. You should just have one implementation, give it a name, and reuse it.