dev: changed interface to work with pluginevent object and optional target pluginname for dispatch method