Expose database to templates
Expose all test suites and their cases from the database to the templates, as well as the source path set and functions for matching test suites and test cases against them.
This will let templates be aware of test suite and test case objects and make better decisions. This prepares for the addition of template-visible suite-level parameters.
Supersedes #51 (closed).