couple of entity features and bug fixes

* cleanup entity scripts when changing domains or entity is deleted
* added oritinalTextures property to entities to make it easier to know what textures are replaceable and what their original values would be
* fixed bug in loading textures of previously saved entity