changed: Use a member variable for the texture database to speedup thumb loading

Also gets rid of Initialize/Deinitialize ThumbLoader functions
fixed: Music thumb loading for files view was slow

This was caused by the fact that we never checked for cached images for music items
fixed: Video thumb loader use outside the bg infoloader kept extracting thumbs/flags over and over again

Also factored out some (legacy?) code as a bonus