Add Texture loading to ResourceManager. Fix ResourceManager resource tracking.