Move NameDbRow processing for RPC calls to separate routine.

Add a new routine NameGetMethod::processNameRows that takes care of
converting an array of NameDbRow objects (from the DB query) into the
actual JSON result to be returned.