Implement ircgate (fifo); include utils.pm in main; some misc. stuff