Update main.js

Add a loop for each module to call a method 'init'.
This will allow modules to be initialised after the bot get registered on the server.
(ex: Calling some IRC commands without a trigger message from a user)