Simplify client tests.
Added automatic mapping from cache results to wire responses.
Added test to interpret quit.