pub fn plugin_loop<F>(handler: F) -> Result<()>where F: FnMut(PluginRequest) -> PluginResponse,
runs a newline-delimited json plugin loop.
the handler is invoked once per request. responses are serialized back to stdout.