DAT integration into ResourceManager.
Some fixes in DATRecord