adding icons for shared folders and external folders
move icon generation logic out of the template
remove unused $relativePath
added determineIcon to \OCA\files\lib\Helper
adding calls to \OCA\files\lib\Helper::determineIcon($i) in files, trashbin and sharing
Merge pull request #4816 from owncloud/fixing-723-master

Fixing 723 master