Lots of changes. Implemented both to-plugin RPCs though not all complete yet. Also, some connect and I/O code. It compiles but is very unlikely to actually work still.