Legacy xml rpc

This is everything except search 'cos we don't know quite how that works just yet.