ResourceManager support for text files.

ResourceManager.addTextFile
ResourceManager.getTextFile