Eliminate some Visual Studio warnings, rename itemnames->resourcenames.
reduce use of cb_items, because we want to remove it.
eliminate cb_items
we are about to remove rt_register, but not quite yet.
rt_register is no longer required, new_resourcetype replaced by rt_get_or_create.