[3.8] Enhance display code of thumbnails

Decouple the display code of thumbnails, this allow to replace video, pdf or audio player through phraseanet plugins for future use.