setVariant: add ai class & team color specification (and updated ship_variants.txt accordingly)
texture replacement infrastructure in place, but it doesn't seem possible to change a ship's texture once the game is running
also moved a few things around & added a couple of utility functions
setVariant: added RoF sub attribute