Implement "name_register" RPC call.  Not well tested for now.

Implement the new "name_register" RPC call.  It is not yet really
tested, though.