Some validation of message.text.
Added few db.end() statements.
IRC gateway too gets the mysql  connection object from the pool.
Removed few useless logs.
Merge branch 'master' into pluginUI
outsourced the db.release headache to data.js in core.