checked in legacy code mapping for registry table in moodle.org
note: at the time of checkin this was already written but MDLSITE-3041 will likely lead to this not being used. (anyway checked in for  posterity)
MDLSITE-3041 added web service call that receives data for 1.9 registrations. tries its best to add them into hub_site_directory. sends back new hub ids and any exceptions per record (if any)
MDLSITE-3041 use timeregistration created at moodle.org for 1.9 sites.
MDLSITE-3041 added data length checks and a ZZ for unknown country. name cannot be null in hub - allowed for that by replacing nulls with a space.
MDLSITE-3041 truncate mb strings accordingly. return exception info encoded as utf8 to avoid invalid ws return response.