thumb: fix several bugs, resolve #22
thumb: fix several bugs, resolve #22

- Rearchitect slightly to (hopefully) eliminate concurrent map access
- Fix bug causing thumbs saved to disk to not be used when server
  restarts. It was an error in extracting the dimensions from the
  filename.

moshee/airlift,moshee/airlift,moshee/airlift