Result loader refactoring.
Moved data templates to a separate file.
Refactoring.