r771

Fixes to textures, ragdoll and various speed and stability tweaks.