Res management

Added resource manager to work with assets in a platform-independent way.