Cherry-pick single-threaded awg RPC server into branch 5.1
This is a cherry-pick of the entirety of a branch previously merged into master. Reason is to get x2ats to run on branch-5.1.
This is apparently as tirpc server is meant to be used. It has unprotected global state.
Limited testing shows much improved stability (no crashes) when running basic tests in diaggui.