Improved code in ResourceManager

Changed some value parameters to constant refs.
Templatized the rm::getKeyValue functions.
Skin images can contain multiple skins, of which one is chosen at
random.