Simple dispatcher and protocol for shell-based plugins, an improvement to hook scripts