Prepare for thumbnails to work again

Added a unit test to verify that thumbnails work, and added support for filtering out certain directories, in order to ensure that the .thumbnails directory won't be exported.

The patches needed to make thumbnails actually work are in quillimagefilters and tumbler.