Template based resource icons

Add „template_[[add templete id here]]“ to each node in the resource
tree. Allows to customize icons in the tree according to the template
used for this item. See it in action:
https://dl.dropboxusercontent.com/u/1840535/Download.png