refactor server/client call/resp., more flexible

also ready for REPL printing from the client, by virtue of storing *out*