Thumbnail images, folder images, and support for special chars in filenames

This contains everything from last pull request re: async thumbnail generation, as well as an (open source) folder image for directories, and safe handling of special chars in filenames in several different places.