Rename ents to entities for Library & files.

See commits.