Added ResourceLoader.
Todo:
- fix tests
- refactoring
fixed tests