add DirectoryController and TemplateController
Merge branch 'master' of https://github.com/dzigerlig/CDAR.git