Add API tests for config templates

Update the `ConfigTemplate` class definition: add mixins for creation, reading
and deletion. Thoroughly test the relevant API endpoints.