Also introduce more indirection for thumbnails.

To update the directories, from data/thumbnails/:

for i in `seq 0 99`; do mkdir $i; done
for i in `seq 1 20000`; do if test -f $i.jpg; then mv $i.jpg $(($i % 100))/; fi; done