[OTF:1619] CodeFirst SaveTextResource model. Added relevant commands and added/updated relevant queries.