(IRCBOT) main module bigger changes

main module:
now buffers the messages to prevent flooding
detects disconnecting from the network, and tries to reconnect
automatically

(plugin) stats:
removed quering for the DB via prvt msg, since it was so messy (and a
website is a better way to share the DB anyway)