Moving connection logic into gateway.js
Allow plugins to open new IRC connections