Add API tests for config templates

Update the `ConfigTemplate` class definition: add mixins for creation, reading
and deletion. Thoroughly test the relevant API endpoints.
Merge pull request #1301 from Ichimonji10/test-config-template

Add API tests for config templates