Lock and textures properties

* Adds "locked" support to all entities
* Adds "texture" support model entities
* changes editModels.js to use the properties dialog box library so all these features work for editModels or newEditEntities
just cleaning up old code to use the DRYer macros