ircplugin: change the plugin interface

now the action/command functions must return a dict if success,
otherwise None.  this returned dict is used to construct message.