add a json field to Template model.
now the Template is sent to the app in json, not yaml
testing for the rest of the API is done.
Needed modifications has been done to make the API work