refactoring. most resources only needed by applications, moving res directory into apllications subdir