Refactored repositories
 - added abstract repository
 - store report and data templates in single map
Implemented support for relational DB as a source of tabular data for template resolution. it closes #36.