Added thumbnail support

The REST service should now generate actual thumbs in the THUMB_DIR folder. You can get at them via .../images/thumbs/file.png instead of ../images/file.png. I've updated the page as well so only the thumbs are loaded by default.

I haven't tested the thumbnail generation code (busy busy busy), but I have used it several times in the past, so it should work.