fix some bug and refactor a little
update (not an inspired commit message..)
Add function to sync templates files and db.
finish the refactoring begun last commit
minor changes
First part the implementation of the views/url for
dossier and template
Continuation of the implemention of nodesk template/dossier
views. Add a field to Template to determine if a Template is alive
(if it is available when creating new dossier) or not.
It is true if the yaml of the Template is still in the yaml directory
Add code in the views to get template/dossier. not tested yet
add code to serve dossier's attachement
fix some error in the code
template url are working.
Next step is to finish dossier http API and test it
finished the http API to create/modify/get dossier.
Need testing.

Also need to create a function for upload_to that save the file to
MEDIA_PATH/template_id/dossier_id/ (TODO)
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