R_RegisterModel and R_RegisterSkin

Some serious refactoring