COOPR-650: Implement base classes for partial templates

Base abstract template / persistence layer / base tests for partial templates.