tp: add a simple wrapper binary around RPC protocol

This CL adds a very simple wrapper binary around the trace processor RPC
protocol; all this bianry does is read stdin, push the bytes to the rpc
class and push the responses to stdout.

The purpose of this is to use this in Bigtrace in a gVisor sandbox: the
simplicity is a boon as it makes random failures inside the sandbox much
less likely.

Also add a simple test just to make sure there are no obvious errors.

Change-Id: I421ab958d0e75c3e1b4c9eec3f22b8c2b13243ed
diff --git a/BUILD b/BUILD
index c51f84d..7e76ea8 100644
--- a/BUILD
+++ b/BUILD
@@ -2372,6 +2372,15 @@
     ],
 )
 
+# GN target: //src/trace_processor/rpc:stdiod
+perfetto_filegroup(
+    name = "src_trace_processor_rpc_stdiod",
+    srcs = [
+        "src/trace_processor/rpc/stdiod.cc",
+        "src/trace_processor/rpc/stdiod.h",
+    ],
+)
+
 # GN target: //src/trace_processor/sorter:sorter
 perfetto_filegroup(
     name = "src_trace_processor_sorter_sorter",
@@ -5505,6 +5514,7 @@
         ":src_trace_processor_perfetto_sql_intrinsics_table_functions_tables",
         ":src_trace_processor_rpc_httpd",
         ":src_trace_processor_rpc_rpc",
+        ":src_trace_processor_rpc_stdiod",
         ":src_trace_processor_sorter_sorter",
         ":src_trace_processor_sqlite_query_constraints",
         ":src_trace_processor_sqlite_sqlite",