Fix a couple incorrect table/type references
Working cached image excerpts and video head images

The format handling, specifically Format.{Image,Video} values, aren't perfect
and currently hard-code the first two format ids.  The concurrent caching
hasn't been stress-tested yet, though a single client exercises most of the
code anyway.