introduce detail directive that recursively print the tree elements

- new directives/detail.js : recursively print tree elements
- comment out old logic in detail.html
- fix detail controller
- delete single controller (has been replaced by endpoint controller & detail controller)