Rework RRQ handling. Refactor common server code.