Gallery API

This new Gallery API is a pretty cool guy. It lets us query images based on width and height and it doesn't afraid of anything.

A lot of things now might require/enjoy having all the images referenced in the DB to actually exist on the filesystem and be images that PIL/Pillow know how to handle. To that end, I added a script that downloads them and sticks them in the right place. It took about 30 minutes to run for me.

If your DB is slightly old, this might get some 404s, which I just replaced with copies of blank.png from our static files.

r?
The timings end up being radically inaccurate and fluctuating, but the count was nice. It would be cool to figure out a way to make it better, if you have any ideas.

I'll promote this to k.sumo.utils. What kind of coloring would you expect?