Try to follow RFC2812 for waiting on serverl welcome and join messages before performing more tasks
module is not exposed to send_msg, but main() catches exceptions and uses module.fail_json
Merge pull request #5203 from sivel/irc-rfc-loops

Improve IRC module. Fixes #5186