Simple RPC server implementation